class Order < ActiveRecord::Base
  has_many :items, :autosave => true
  has_many :products, :through => :items
  belongs_to :user
  
  validates :phone, :length => {:within => 7..12}
end
